<template>
		<view v-show="top>100" @click="goTop" class="go-top">
		</view>
</template>

<script>
	export default {
		name:"top-button",
		props:{
			top:0
		},
		data() {
			return {
			};
		},
		methods:{
			goTop(){
				uni.pageScrollTo({
					duration:200,
					scrollTop:0
				})
			},
		},
		
	}
</script>

<style scoped>
.go-top{
		width: 80rpx;
		height: 80rpx;
		position: fixed;
		bottom: 120rpx;
		right: 20rpx;
		background: red url("../../static/TOP.png") no-repeat center;
		background-size: 100%;
		border-radius: 10rpx;
	}
</style>